home *** CD-ROM | disk | FTP | other *** search
- Path: dsi.unimi.it!moreld
- From: moreld@dsi.unimi.it (~ZIO BUDDA~)
- Newsgroups: comp.lang.c++
- Subject: Re: waning : const discard
- Date: 18 Mar 1996 15:16:52 GMT
- Organization: Computer Science Dep. - Milan University
- Message-ID: <4ijup4$b54@tic.sm.dsi.unimi.it>
- References: <4iju00$m68@tic.sm.dsi.unimi.it>
- NNTP-Posting-Host: tac.fddi.dsi.unimi.it
- X-Newsreader: TIN [version 1.2 PL2]
-
- ~ZIO BUDDA~ (moreld@dsi.unimi.it) wrote:
- > Hi, my question is :
- > I use g++ 2.7.0 and the default Class String, but when I use in a program
- > a line like
- > XDrawString(CXDisplay, CXWindow, CXGC, x, y, stringa, strlen(stringa));
-
- > if I use stringa like char * all is ok, but if a say that stringa is a
- > variable of Class String (aka String stringa;) the compiler
- > return me a warning that say me that the const is discard.
- > Ok this is a warning, but I hate this warning. Help, this is for an exam
- > and my prof hate warning.
-
- sorry for my follow up, but if stringa is a variable of class String
- i use this line
- XDrawString(CXDisplay, CXWindow, CXGC, x, y, stringa.chars(), stringa.len());
-
- again sorry
- --
- Zio Budda "sempre alla ricerca di un account..." moreld@ghost.dsi.unimi.it
- http://www.dsi.unimi.it/Users/Students/moreld/home.html
- Ask me for questions about LINUX and Games for PC, and see my home page
- I'm a programmer and a consultant...
-
- Tel. 02/2139959 ... Chiedere di Davide Michel
-